// If the user chose to use the alternate icon, change the browser action icon
if (localStorage['altIcon'] == 'true')
    chrome.browserAction.setIcon({path:'icons/alt_action.png'});

// Display an information page to someone who just installed the extension
if (localStorage['firstRun'] != 'no') {
    chrome.tabs.create({'url': chrome.extension.getURL('firstRun.html')})
    localStorage['firstRun'] = 'no';
}

// Set up OAuth to support logging into a Google Account
var oauth = ChromeExOAuth.initBackgroundPage({
    'request_url': 'https://www.google.com/accounts/OAuthGetRequestToken',
    'authorize_url': 'https://www.google.com/accounts/OAuthAuthorizeToken',
    'access_url': 'https://www.google.com/accounts/OAuthGetAccessToken',
    'consumer_key': '558750185154.apps.googleusercontent.com',
    'consumer_secret': 'axNvMcX-TS_mE8U6dew--nxR',
    'scope': 'https://www.googleapis.com/auth/urlshortener',
    'app_name': 'ShortenMe'});